package cn.seocoo.platform.sysArea.domain;

import cn.seocoo.platform.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 国家行政区划表 tb_sys_area
 */
public class SysArea extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Long id;
	/** 地区代码 */
	private String code;
	/** 地区名称 */
	private String name;
	/** 父级code */
	private String pcode;
	/** 合并名称 */
	private String mergerName;
	/** 省份 */
	private String province;
	/** 城市 */
	private String city;
	/** 县/区 */
	private String district;
	/** 最后修改时间 */
	private Date lastUpdateTime;
	/** 操作人 */
	private Long operator;
	/** 操作人IP */
	private String operatorIp;
	/** 地区等级：0 国家 ， 1 省份 ，2 市区 ，3 区域 */
	private Integer level;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setPcode(String pcode) 
	{
		this.pcode = pcode;
	}

	public String getPcode() 
	{
		return pcode;
	}
	public void setMergerName(String mergerName) 
	{
		this.mergerName = mergerName;
	}

	public String getMergerName() 
	{
		return mergerName;
	}
	public void setProvince(String province) 
	{
		this.province = province;
	}

	public String getProvince() 
	{
		return province;
	}
	public void setCity(String city) 
	{
		this.city = city;
	}

	public String getCity() 
	{
		return city;
	}
	public void setDistrict(String district) 
	{
		this.district = district;
	}

	public String getDistrict() 
	{
		return district;
	}
	public void setLastUpdateTime(Date lastUpdateTime) 
	{
		this.lastUpdateTime = lastUpdateTime;
	}

	public Date getLastUpdateTime() 
	{
		return lastUpdateTime;
	}
	public void setOperator(Long operator) 
	{
		this.operator = operator;
	}

	public Long getOperator() 
	{
		return operator;
	}
	public void setOperatorIp(String operatorIp) 
	{
		this.operatorIp = operatorIp;
	}

	public String getOperatorIp() 
	{
		return operatorIp;
	}
	public void setLevel(Integer level) 
	{
		this.level = level;
	}

	public Integer getLevel() 
	{
		return level;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("pcode", getPcode())
            .append("mergerName", getMergerName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("createTime", getCreateTime())
            .append("district", getDistrict())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("operator", getOperator())
            .append("operatorIp", getOperatorIp())
            .append("level", getLevel())
            .toString();
    }
}
